#ifndef _JOGO_H_
#define _JOGO_H_

#include <dpmi.h>
#include <sys/nearptr.h>
#include <go32.h>
#include <stdio.h>
#include <math.h>
#include "Utypes.h"
#include <stdlib.h>
#include "graphics.h"
#include "sprite.h"


typedef struct{
	int posx;     ///< position x of the paddle
	int posy;     ///< position y of the paddle
	int altura;   ///< pointer
	int largura;  ///< pointer
}Raquete;

/** Creates a new paddle*/
Raquete * criaRaquete(int tipo, int altura, int largura, char *base);

void raquete_(char* base, int largura, int altura, int posx, int posy);
/**Shows the paddle on the screen */
void DesenhaRaquete(char* base, Raquete *rqt);
/** erases the paddle */
void ApagaRaquete(char* base, Raquete *rqt);
/** moves the paddle rqt with the speed of the current direction (direcao */
int moverRaquete(char *base,Raquete *rqt, int direcao);
/** shows the table of the game */
void desenha_mesa(char *base);
/**Puts the paddles in the initial position */
void resetRaquetes(Raquete *rqt1, Raquete *rqt2 , char* base);

#endif
